<?php

namespace App\Models\Pay;

use App\Models\Personnel\Personnel;
use App\Models\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Gongling extends Model
{
    protected $table = 'akbus_pay_gongling';

    protected $fillable = [
        'line',
        'date',
        'salary',
        'personnel_id',
    ];

    /**
     * 类型转化
     *
     * @var array
     */
    protected $casts = [
    ];

    public function personnel(): BelongsTo
    {
        return $this->belongsTo(Personnel::class);
    }
}
